Optimal. Leaf size=42 \[ \frac {\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (x)}{\sqrt {2} \sqrt {\sin (x)} \sqrt {a-a \sin (x)}}\right )}{\sqrt {a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2782, 208} \[ \frac {\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (x)}{\sqrt {2} \sqrt {\sin (x)} \sqrt {a-a \sin (x)}}\right )}{\sqrt {a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 208
Rule 2782
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {\sin (x)} \sqrt {a-a \sin (x)}} \, dx &=-\left ((2 a) \operatorname {Subst}\left (\int \frac {1}{2 a^2-a x^2} \, dx,x,-\frac {a \cos (x)}{\sqrt {\sin (x)} \sqrt {a-a \sin (x)}}\right )\right )\\ &=\frac {\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (x)}{\sqrt {2} \sqrt {\sin (x)} \sqrt {a-a \sin (x)}}\right )}{\sqrt {a}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.10, size = 128, normalized size = 3.05 \[ \frac {2 \sqrt {\sin (x)} \sec ^2\left (\frac {x}{4}\right ) \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right ) \left (F\left (\left .\sin ^{-1}\left (\frac {1}{\sqrt {\tan \left (\frac {x}{4}\right )}}\right )\right |-1\right )-\Pi \left (-1-\sqrt {2};\left .\sin ^{-1}\left (\frac {1}{\sqrt {\tan \left (\frac {x}{4}\right )}}\right )\right |-1\right )-\Pi \left (-1+\sqrt {2};\left .\sin ^{-1}\left (\frac {1}{\sqrt {\tan \left (\frac {x}{4}\right )}}\right )\right |-1\right )\right )}{\tan ^{\frac {3}{2}}\left (\frac {x}{4}\right ) \sqrt {1-\cot ^2\left (\frac {x}{4}\right )} \sqrt {a-a \sin (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 168, normalized size = 4.00 \[ \left [\frac {\sqrt {2} \log \left (\frac {17 \, \cos \relax (x)^{3} + 3 \, \cos \relax (x)^{2} + \frac {4 \, \sqrt {2} {\left (3 \, \cos \relax (x)^{2} - {\left (3 \, \cos \relax (x) + 4\right )} \sin \relax (x) - \cos \relax (x) - 4\right )} \sqrt {-a \sin \relax (x) + a} \sqrt {\sin \relax (x)}}{\sqrt {a}} - {\left (17 \, \cos \relax (x)^{2} + 14 \, \cos \relax (x) - 4\right )} \sin \relax (x) - 18 \, \cos \relax (x) - 4}{\cos \relax (x)^{3} + 3 \, \cos \relax (x)^{2} - {\left (\cos \relax (x)^{2} - 2 \, \cos \relax (x) - 4\right )} \sin \relax (x) - 2 \, \cos \relax (x) - 4}\right )}{4 \, \sqrt {a}}, -\frac {1}{2} \, \sqrt {2} \sqrt {-\frac {1}{a}} \arctan \left (\frac {\sqrt {2} \sqrt {-a \sin \relax (x) + a} \sqrt {-\frac {1}{a}} {\left (3 \, \sin \relax (x) + 1\right )}}{4 \, \cos \relax (x) \sqrt {\sin \relax (x)}}\right )\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {-a \sin \relax (x) + a} \sqrt {\sin \relax (x)}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 53, normalized size = 1.26 \[ -\frac {2 \sqrt {-\frac {-1+\cos \relax (x )}{\sin \relax (x )}}\, \left (-1+\cos \relax (x )+\sin \relax (x )\right ) \left (\sqrt {\sin }\relax (x )\right ) \arctanh \left (\sqrt {-\frac {-1+\cos \relax (x )}{\sin \relax (x )}}\right )}{\sqrt {-a \left (-1+\sin \relax (x )\right )}\, \left (-1+\cos \relax (x )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {-a \sin \relax (x) + a} \sqrt {\sin \relax (x)}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {1}{\sqrt {\sin \relax (x)}\,\sqrt {a-a\,\sin \relax (x)}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {- a \left (\sin {\relax (x )} - 1\right )} \sqrt {\sin {\relax (x )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________